<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P84 【例4-7】demo07.html</title>
</head>

<body>
    <script>
        function fn() {
            var times = 0;
            var c = function () {
                return ++times;
            };
            return c;
        }
        var count = fn();
        console.log(count());
        console.log(count());
        console.log(count());
        console.log(count());
        console.log(count());
    </script>
    <a href="../首页/page04.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>